/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.domain.req.repository;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

import com.xy.lang.validation.annotation.AlertMessage;

/**
 * @author ssl
 * @date 2021-1-18
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ListRepositoryRequest {

    @NotNull(message = "pageIndexRequired")
    @AlertMessage(code = "pageIndexRequired", msg = "页索引不能为空")
    private Integer pageIndex;

    @NotNull(message = "pageSizeRequired")
    @AlertMessage(code = "pageSizeRequired", msg = "页大小不能为空")
    private Integer pageSize;

    @NotNull
    private String repositoryName;

    /**
     * 所属关系：0-个人 1-团队或部门
     */
    private Integer belongType;

    /**
     * 所属关系Id  个人团队或部门
     */
    private Long belongTo;

    /**
     * 如果是团队，判断是否为管理员 0 不是， 1 是
     */
    private Integer isTeamAdmin;

}
